// 视图组件
const view = {
  tabs: () => import('@/layouts/tabs'),
  blank: () => import('@/layouts/BlankView'),
  page: () => import('@/layouts/PageView')
}

// 路由组件注册
const routerMap = {
  login: {
    authority: '*',
    path: '/login',
    component: () => import('@/pages/login')
  },
  root: {
    path: '/',
    name: '首页',
    redirect: '/login',
    component: view.tabs
  },
  dashboard: {
    name: 'Dashboard',
    component: view.blank
  },
  workplace: {
    name: '工作台',
    component: () => import('@/pages/dashboard/workplace')
  },
  organization: {
    name: '组织结构',
    component: view.blank
  },
  college: {
    name: '学院管理',
    component: () => import('@/pages/organization/college')
  },
  major: {
    name: '专业管理',
    component: () => import('@/pages/organization/major')
  },
  classes: {
    name: '班级管理',
    component: () => import('@/pages/organization/classes')
  },
  grade: {
    name: '年级管理',
    component: () => import('@/pages/organization/grade')
  },
  semester: {
    name: '学年管理',
    component: () => import('@/pages/organization/semester')
  },
  group: {
    name: '教研室',
    component: () => import('@/pages/organization/group')
  },
  courses: {
    name: '课程结构',
    component: view.blank
  },
  course: {
    name: '课程管理',
    component: () => import('@/pages/courses/course')
  },
  type: {
    name: '课程类别',
    component: () => import('@/pages/courses/type')
  },
  personnel: {
    name: '人员结构',
    component: view.blank
  },
  user: {
    name: '人员管理',
    component: () => import('@/pages/personnel/user')
  },
  role: {
    name: '角色管理',
    component: () => import('@/pages/personnel/role')
  },
  menus: {
    name: '菜单绑定',
    component: () => import('@/pages/personnel/menus')
  },
  task_allocation: {
    name: '任务分配',
    component: view.blank
  },
  program: {
    name: '培养方案',
    component: () => import('@/pages/allocation/program')
  },
  plan: {
    name: '教学计划',
    component: () => import('@/pages/allocation/plan')
  },
  task: {
    name: '教学任务',
    component: () => import('@/pages/allocation/task')
  },
  workload: {
    name: '工作量',
    component: () => import('@/pages/allocation/workload')
  },
  statistics: {
    name: '工作量统计图',
    component: () => import('@/pages/allocation/statistics')
  },
  history: {
    name: '历史记录',
    component: view.blank
  },
  task_final: {
    name: '教学任务记录',
    component: () => import('@/pages/history/task')
  },
  workload_final: {
    name: '工作量统计图',
    component: () => import('@/pages/history/workload')
  },



  exp403: {
    authority: '*',
    name: 'exp403',
    path: '403',
    component: () => import('@/pages/exception/403')
  },
  exp404: {
    name: 'exp404',
    path: '404',
    component: () => import('@/pages/exception/404')
  },
  exp500: {
    name: 'exp500',
    path: '500',
    component: () => import('@/pages/exception/500')
  },

}
export default routerMap

